import request from '@/utils/request'
export function fetchList(data) {
  return request({
    url: '/back/pms/carousel/page',
    method: 'post',
    data: data
  })
}
export function createSwiper(data) {
  return request({
    url: '/back/pms/carousel/insert',
    method: 'post',
    data: data
  })
}

export function updateSwiper(id, data) {
  data.id = id
  return request({
    url: '/back/pms/carousel/update',
    method: 'put',
    data: data
  })
}

export function deleteSwiper(id) {
  return request({
    url: '/back/pms/carousel/delete/' + id,
    method: 'post'
  })
}


